
import java.io.IOException;
import java.io.UnsupportedEncodingException;

import org.apache.http.client.ClientProtocolException;


public class AndroidLoginQ{


public static void main(String[] args)
{
	String token = null;
	boolean status = false;
	AndroidLoginR alr = new AndroidLoginR("207project@gmail.com","207group04");
	
	try{
		token = alr.clientDetails();
		if(status = token.startsWith("Error"))
			System.out.println("Please Login again");
		else	
			System.out.println("token = "+token);
		
	}
	catch(UnsupportedEncodingException ex)
	{
		System.out.println(ex.getCause());
	}
	catch(ClientProtocolException ex)
	{
		System.out.println(ex.getCause());
	}
	catch(IOException ex)
	{
		System.out.println(ex.getCause());
	}
}

}